package com.ws.user.user.dao;

import com.ws.user.user.entity.UserRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface UserRoleMapper{

    public List<UserRole> list(UserRole params);

    @Delete("delete from user_role where user_Id=#{userId}")
    Integer deleteByUserId(@Param("userId") String userId);
}